package com.example.springbootdemo;

import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @author brianxia
 * @version 1.0
 * @date 2022-11-22 11:32
 */
@Component
public class TestJob {

//    @Scheduled(cron = "0/5 * * * * ?")
    @XxlJob("myjob")
    public void job(){
        System.out.println(new Date());
        //扫描数据库，获取三天后到期的用户

        //发送短信
    }
}
